]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Replace template strings with .format()
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 11 Feb 2021 17:30:10 +0000 (18:30 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 11 Feb 2021 18:51:40 +0000 (18:51 +0000)
CI will complain when we add screenshot.js to the POTFILES in the next
commit because gettext doesn't like template strings, so make CI happy
and switch to .format() instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1658>

js/ui/screenshot.js

index f10c68f386cd0da98d63bd0d29cb3cc7ba1d4f56..1c724f0babd33f135d5a1e627b85b18f857ec295 100644 (file)
@@ -90,11 +90,11 @@ var ScreenshotService = class {
             return null;
 
         yield Gio.File.new_for_path(
-            GLib.build_filenamev([path, `${filename}.png`]));
+            GLib.build_filenamev([path, '%s.png'.format(filename)]));
 
         for (let idx = 1; ; idx++) {
             yield Gio.File.new_for_path(
-                GLib.build_filenamev([path, `${filename}-${idx}.png`]));
+                GLib.build_filenamev([path, '%s-%s.png'.format(filename, idx)]));
         }
     }